import * as types from '../../mutation-types'

const state = {
  mudiEditInfo: [],
  mudiBackgroundImage: 'http://www.qjqw.com/goods//material_files_muyuan/20084555086485.jpg',
  mudiMusic: {}
}

const mutations = {
  [types.MUDI_EDIT_INFO] (state, data) {
    state.mudiEditInfo = data
  },
  [types.MUDI_BACKGROUND_IMAGE] (state, data) {
    state.mudiBackgroundImage = data.url
  },
  [types.MUDI_EDIT_MUSIC] (state, data) {
    state.mudiMusic = data
  }
}

export default {
  state,
  mutations
}
